package cn.bmbanjia.zebra2024.frame.validation;

import jakarta.validation.Constraint;
import jakarta.validation.Payload;

import java.lang.annotation.*;


@Documented
@Target({ElementType.FIELD, ElementType.PARAMETER})
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy = PhoneValidator.class)
public @interface Phone {

    String message() default "phone regex false";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};
}
